<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item>1</van-swipe-item>
      <van-swipe-item>2</van-swipe-item>
      <van-swipe-item>3</van-swipe-item>
      <van-swipe-item>4</van-swipe-item>
    </van-swipe>
    <div class="more">
      <div class="all-title">全部教程</div>
      <div>更多</div>
    </div>
    <ul class="box">
      <li class="box-item">
        <div class="img">
          <img src="" alt="">
        </div>
        <p>java</p>
      </li>
      <li class="box-item">
        <div class="img">
          <img src="" alt="">
        </div>
        <p>java</p>
      </li>
      <li class="box-item">
        <div class="img">
          <img src="" alt="">
        </div>
        <p>java</p>
      </li>
      <li class="box-item">
        <div class="img">
          <img src="" alt="">
        </div>
        <p>java</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "videos",
};
</script>

<style lang="scss" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 180px;
  text-align: center;
  background-color: #39a9ed;
}
.more{
  width: 100%;
  height: 0.8rem;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.3rem;
  .all-title{
    width: 80px;
    text-align: center;
    border-left: 3px solid #9fc6ff;
  }
}
.box{
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  .box-item{
    width: 3.4rem;
    height: 2.8rem;
    .img{
      width: 100%;
      height: 2.2rem;
      background: red;
      img{
        width: 100%;
        height: 100%;
      }
    }
    p{
      width: 100%;
      line-height: 0.6rem;
    }
  }
}
</style>